<template>
	<view class="">
		<view class="list mx-3 mt-2">
			<view class="list-item" v-for="(item,index) in list" :key="index">
				<view class="list-item-title">预约姓名：{{item.name}}</view>
				<view class="list-item-title">预约电话：{{item.mobile}}</view>
				<view class="list-item-title">预约来院时间：{{item.yuyue}}</view>
				<view class="list-item-title">预约科室：{{item.doctor}}</view>
				<view class="list-item-title">预约项目：{{item.project}}</view>
				<view class="list-item-title">病情描述：{{item.desc}}</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {postYueList} from '@/api/home.js'
	export default {
		data() {
			return {
				list: []
			}
		},
		onShow() {
			this.getdata()
		},
		methods: {
			getdata(){
				postYueList().then(res=>{
					this.list=res.data
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	.list {
		background-color: #F6F6F6;
		padding-top: 8rpx;
	}

	.list-item {
		padding: 20rpx;
		background-color: white;
		margin-bottom: 20rpx;
		border-radius: 10rpx;
	}

	.list-item-title {
		font-size: 26rpx;
		color: #666666;
		font-weight: 500;
		margin-bottom: 10rpx;
	}
</style>
